package dblayer;

import static org.junit.Assert.assertNotNull;

import java.sql.Connection;

import org.junit.Test;

public class DBConnectionTest {

	@Test
	public void test() {
		Connection dbCon = DBConnection.getInstance().getDBcon();
		
		assertNotNull("Kis' DB connection is null - the singleton failed=", dbCon);
		/*if(dbCon != null)
		{
			System.out.println("Conecction to DB is ok");
		}
		else{
		    fail("Can not connect to the DB");
		}*/
	}

}